﻿<UserControl x:Class="Views.ViewEncoursImport"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="134" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <GroupBox Grid.Row="0"
                  Style="{DynamicResource OMANE_GpeBox}"
                  Header="Choix de la base d'encours" 
                  Name="gbxBaseEnc"
                  Margin="25,25,25,0">
            <Grid  Margin="25,0,25,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" MaxHeight="13" />
                    <RowDefinition Height="57" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" 
                                       Grid.Row="1"
                                       HorizontalAlignment="Left" 
                                       VerticalAlignment="Center"
                                       FontWeight="Regular">
                                Emplacement de la base :
                            </TextBlock>
                <Label Grid.Column="1" 
                       Grid.Row="1"
                       BorderBrush="ForestGreen"
                       BorderThickness="1"
                       Margin="10,0,0,0"
                       VerticalContentAlignment="Stretch"
                       VerticalAlignment="Stretch"
                       FontWeight="Regular"
                       Padding="0">
                    <TextBlock VerticalAlignment="Center" 
                               Margin="2,0,0,0"
                               TextWrapping="Wrap"
                               FontWeight="Bold"
                               Text="{Binding NomBase}" />
                </Label>
                <Button Margin="10,0,0,0" 
                        Style="{DynamicResource btnBase_OMANE}" 
                        Grid.Row="1" 
                        Grid.Column="2"
                        Command="{Binding Path=cmdParcourir}"
                        Name="BtnParcourir">
                        <!---->
                    Parcourir
                </Button>
            </Grid>
        </GroupBox>
        <GroupBox Grid.Row="1" 
                  Style="{DynamicResource OMANE_GpeBox}" 
                  Header="Table" 
                  Name="gbxTableBaseEnc"
                  Margin="25,25,25,25">
            <Grid  Margin="25,0,25,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" MaxHeight="13" />
                    <RowDefinition Height="*" MinHeight="25" MaxHeight="38" />
                    <RowDefinition Height="*" MinHeight="25" MaxHeight="38"  />
                    <RowDefinition Height="*" MinHeight="25" MaxHeight="38"  />
                    <RowDefinition Height="*" MaxHeight="13" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Label Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" FontWeight="Regular">Nom de la table :</Label>
                <Label Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center" FontWeight="Regular" >Nombre de colonnes :</Label>
                <Label Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center" FontWeight="Regular">Nombre de lignes :</Label>
                <ComboBox Margin="10,0,0,0" 
                          Style="{DynamicResource OMANE_cbx}" 
                          Grid.Row="1" 
                          Height="22"
                          Width="200"
                          HorizontalAlignment="Left"
                          Grid.Column="1"
                          IsSynchronizedWithCurrentItem="True"
                          ItemsSource="{Binding Tables}"/>
                <Label Height="Auto" Content="{Binding NbColonnes}" VerticalContentAlignment="Center" Margin="10,0,0,0" Grid.Row="2" Grid.Column="1" />
                <Label Height="Auto" Content="{Binding NbLignes}" VerticalContentAlignment="Center" Margin="10,0,0,0" Grid.Row="3" Grid.Column="1" />
            </Grid>
        </GroupBox>
    </Grid>
</UserControl>
